load("@rules_cc//cc:defs.bzl", "cc_library")
load("@rules_cuda//cuda:defs.bzl", "cuda_library")

package(default_visibility = ["//visibility:public"])

cc_library(
    name = "base_cv_image",
    srcs = [
        "image.cc",
    ],
    hdrs = [
        "image.h",
        "image_process.h",
    ],
    includes = [
        ".",
    ],
    deps = [
        "//base/common:base_common",
        "//base/blob:base_blob",
        "@com_github_google_glog//:glog",
        "@cuda//:cuda",
    ],
)


cuda_library(
    name = "resize",
    srcs = [
        "resize.cu",
    ],
    hdrs = [
        "resize.h",
    ],
    deps = [
        ":base_cv_image",
        "//base/blob:base_blob",
        "@com_github_google_glog//:glog",
        "@opencv//:opencv",
        "@cuda//:cuda",
    ],
)